import React, { useEffect, useState } from 'react'
import './App.css'
import { BrowserRouter, Route, Switch } from 'react-router-dom'
import HomePage from './pages/homePage'
import Workspace from './pages/Workspace'
import 'antd/dist/antd.css'; // or 'antd/dist/antd.less'
function App() {
  return (
    <div className="App">
      <BrowserRouter>
        <Switch>
          <Route path="/options.html" component={HomePage} />
          <Route path="/workspace/:name" component={Workspace} />
        </Switch>
      </BrowserRouter>
    </div>
  )
}

export default App
